from pydantic import BaseModel
from datetime import datetime
from decimal import Decimal

class SimulationResultCreate(BaseModel):
    env_param_id: int
    time_point: datetime
    battery_energy: Decimal
    solar_power: Decimal
    grid_power: Decimal
    total_power: Decimal
    wind_power: Decimal
    solar_cost: Decimal
    wind_cost: Decimal
    grid_cost: Decimal
    solar_emission: Decimal
    wind_emission: Decimal
    grid_emission: Decimal

class SimulationResultOut(SimulationResultCreate):
    simulation_result_id: int

    class Config:
        from_attributes = True
